package com.hlk.singleton;

/**
 * 静态内部类
 *
 * @author hlk
 * @version 1.0
 * @date 2020-11-25 11:12
 */
public class StaticInnerClassSingleton {

    private StaticInnerClassSingleton() {

    }

    private static class SingletonHolder {
        private final static StaticInnerClassSingleton INSTANCE = new StaticInnerClassSingleton();
    }

    public StaticInnerClassSingleton getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
